<?php
require_once('constantes.php');
require_once('utils.php');
require_once('fct_tab.php');
require_once('photos_utils.php');
require_once('../fct_dao_invite.php');
require_once('../fct_dao_livreor.php');

define('URI_ERROR_PAGE'	,'http://' . $_SERVER['HTTP_HOST'] . '/WEDDING-IHM/ihm/index.php?onglet=' . tabGetIdByCode('TAB_ERROR'));

//Valuation de l'onglet à mettre en surbrillance
$currentIdTab = tabGetIdByCode('TAB_ACCUEIL');
if (isset($_GET['onglet'])) {
	$currentIdTab = $_GET['onglet'];
} else if (isset($_POST['onglet'])) {
	$currentIdTab = $_POST['onglet'];
}

//Get id mariage
$idMariage = getIdMariage();

echo getHeaderPage(false);
echo getBodyHeader();?>
<table id="tabCorps">
	<tbody>
	<tr>
		<td class="left">
			<?php echo getOngletMenu($idMariage, $currentIdTab); ?>
		</td>
		<td class="centerAndRight">
			<?php include_once(tabGetHtml($currentIdTab)); ?>
		</td>
	</tr>
	<tr id="extraTr">
	 	<td></td>
	 	<td></td>
	</tr>
	</tbody>
</table>
<?php echo getFooterPage();?>